import http from '@/utils/request'

export function add(query){
	return http.request({
		url:'/system/cart',
		method:'post',
		data:query
	})
}

export function selectByUserid(query){
	return http.request({
		url:'/system/cart/list',
		method:'get',
		params:query
	})
}

export function editNum(data){
	return http.request({
		url:'/system/cart',
		method:'put',
	})
}

export function deleteById(data){
	return http.request({
		url:'/system/cart/'+data,
		method:'delete',
		
	})
}
